#!/bin/bash

echo -e "\e[1;33m[root@localhost ~]# lspci -vvv |grep -i 'Non-Volatile' \e[0m"
lspci -vvv |grep -i "Non-Volatile"


lspci -vvv |grep -i "Non-Volatile" | while read line; do
    bdf=$(echo $line | awk '{print $1}')
    echo -e "\e[1;33m[root@localhost ~]# lspci -s $bdf -vvv|grep 'Speed' \e[0m"
    # 使用 smartctl 命令获取基本信息
    lspci -s $bdf -vvv|grep 'Speed'    
done

